<?php

 
 Zend_Loader::loadClass("BaseDBRows");
Zend_Loader::loadClass("Currencie");
class Currencies extends BaseDBRows
{
	protected function setUp()
	{
		$this->_tableName = Currencie::_tablename;
	}	

	public function getCurrencies()
	{
		Zend_Loader::loadClass("QueryCreator");
		
		$query = new QueryCreator();
		$query->addSelect(" c.currency_mark, c.description ");
		$query->addFrom($this->_tableName . " as c ");
		
		$db = DBCon::instance();
		// echo  $query->createSQL();die();
		$result = $db->executeQuery($query->CreateSQL());
		return $result;
	}
		
}
?>